home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / winterp-1.13 / src-client / winterp.elc < prev    next >
Emacs Compiled Lisp  |  1989-12-16  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs v18 byte-compiled Lisp data default
99% file data default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 72 65 71 75 69 72 | 65 20 28 71 75 6f 74 65 |.(requir|e (quote|
|00000010| 20 73 68 65 6c 6c 29 29 | 0a 0a 28 64 65 66 76 61 | shell))|..(defva|
|00000020| 72 20 77 69 6e 74 65 72 | 70 2d 63 6c 69 65 6e 74 |r winter|p-client|
|00000030| 2d 73 68 65 6c 6c 20 22 | 73 68 22 20 22 5c 0a 41 |-shell "|sh" "\.A|
|00000040| 20 73 68 65 6c 6c 20 69 | 6e 20 77 68 69 63 68 20 | shell i|n which |
|00000050| 74 6f 20 72 75 6e 20 74 | 68 65 20 77 69 6e 74 65 |to run t|he winte|
|00000060| 72 70 2d 73 65 72 76 65 | 72 20 63 6c 69 65 6e 74 |rp-serve|r client|
|00000070| 20 27 77 6c 27 20 61 6e | 79 20 73 68 65 6c 6c 20 | 'wl' an|y shell |
|00000080| 77 69 6c 6c 20 64 6f 0a | 65 2e 67 2e 20 73 68 2c |will do.|e.g. sh,|
|00000090| 20 63 73 68 2c 20 6b 73 | 68 2e 2e 2e 2e 22 29 0a | csh, ks|h....").|
|000000a0| 0a 28 64 65 66 76 61 72 | 20 77 69 6e 74 65 72 70 |.(defvar| winterp|
|000000b0| 2d 63 6c 69 65 6e 74 2d | 70 72 6f 67 72 61 6d 20 |-client-|program |
|000000c0| 22 77 6c 22 20 22 5c 0a | 54 68 65 20 6e 61 6d 65 |"wl" "\.|The name|
|000000d0| 20 6f 66 20 74 68 65 20 | 63 6c 69 65 6e 74 20 70 | of the |client p|
|000000e0| 72 6f 67 72 61 6d 20 74 | 68 61 74 20 73 65 6e 64 |rogram t|hat send|
|000000f0| 73 20 6c 69 73 70 20 65 | 78 70 72 65 73 73 69 6f |s lisp e|xpressio|
|00000100| 6e 73 20 74 6f 20 74 68 | 65 0a 77 69 6e 74 65 72 |ns to th|e.winter|
|00000110| 70 20 6c 69 73 70 20 73 | 65 72 76 65 72 2e 20 59 |p lisp s|erver. Y|
|00000120| 6f 75 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 63 |ou may w|ant to c|
|00000130| 68 61 6e 67 65 20 74 68 | 69 73 20 69 66 20 79 6f |hange th|is if yo|
|00000140| 75 20 75 73 65 20 61 20 | 64 69 66 66 65 72 65 6e |u use a |differen|
|00000150| 74 0a 63 6c 69 65 6e 74 | 20 70 72 6f 67 72 61 6d |t.client| program|
|00000160| 2c 20 6f 72 20 69 66 20 | 79 6f 75 20 20 64 6f 6e |, or if |you don|
|00000170| 27 74 20 68 61 76 65 20 | 27 77 6c 27 20 6f 6e 20 |'t have |'wl' on |
|00000180| 79 6f 75 72 20 73 65 61 | 72 63 68 20 70 61 74 68 |your sea|rch path|
|00000190| 2c 20 79 6f 75 0a 6d 61 | 79 20 77 61 6e 74 20 74 |, you.ma|y want t|
|000001a0| 6f 20 73 70 65 63 69 66 | 79 20 61 20 66 75 6c 6c |o specif|y a full|
|000001b0| 20 70 61 74 68 20 74 6f | 20 27 77 6c 27 2e 22 29 | path to| 'wl'.")|
|000001c0| 0a 0a 28 64 65 66 76 61 | 72 20 77 69 6e 74 65 72 |..(defva|r winter|
|000001d0| 70 2d 63 6c 69 65 6e 74 | 2d 70 72 6f 67 72 61 6d |p-client|-program|
|000001e0| 2d 61 72 67 73 20 22 22 | 20 22 5c 0a 54 68 69 73 |-args ""| "\.This|
|000001f0| 20 73 65 74 73 20 74 68 | 65 20 61 72 67 75 6d 65 | sets th|e argume|
|00000200| 6e 74 73 20 73 65 6e 74 | 20 74 6f 20 27 77 6c 27 |nts sent| to 'wl'|
|00000210| 2e 20 59 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |. You ma|y want t|
|00000220| 6f 20 73 65 74 20 74 68 | 69 73 20 74 6f 0a 5c 22 |o set th|is to.\"|
|00000230| 2d 68 20 3c 68 6f 73 74 | 6e 61 6d 65 3e 20 2d 70 |-h <host|name> -p|
|00000240| 20 3c 70 6f 72 74 6e 75 | 6d 3e 5c 22 20 69 66 20 | <portnu|m>\" if |
|00000250| 79 6f 75 20 61 72 65 20 | 72 75 6e 6e 69 6e 67 20 |you are |running |
|00000260| 20 77 69 6e 74 65 72 70 | 20 6f 6e 20 61 20 64 69 | winterp| on a di|
|00000270| 66 66 65 72 65 6e 74 0a | 68 6f 73 74 20 74 68 61 |fferent.|host tha|
|00000280| 6e 20 67 6e 75 65 6d 61 | 63 73 2c 20 6f 72 20 69 |n gnuema|cs, or i|
|00000290| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 72 75 |f you wa|nt to ru|
|000002a0| 6e 20 77 69 6e 74 65 72 | 70 20 6f 6e 20 61 20 54 |n winter|p on a T|
|000002b0| 43 50 20 70 6f 72 74 20 | 6f 74 68 65 72 20 74 68 |CP port |other th|
|000002c0| 61 6e 0a 74 68 65 20 64 | 65 66 61 75 6c 74 2c 20 |an.the d|efault, |
|000002d0| 77 68 69 63 68 20 69 73 | 20 32 33 37 35 31 2e 22 |which is| 23751."|
|000002e0| 29 0a 0a 28 64 65 66 75 | 6e 20 77 69 6e 74 65 72 |)..(defu|n winter|
|000002f0| 70 2d 73 65 6e 64 2d 64 | 65 66 75 6e 20 6e 69 6c |p-send-d|efun nil|
|00000300| 20 22 5c 0a 41 20 76 65 | 72 73 69 6f 6e 20 6f 66 | "\.A ve|rsion of|
|00000310| 20 6c 69 73 70 2d 73 65 | 6e 64 2d 64 65 66 75 6e | lisp-se|nd-defun|
|00000320| 20 74 68 61 74 20 74 61 | 6c 6b 73 20 74 6f 20 57 | that ta|lks to W|
|00000330| 49 4e 54 45 52 50 27 73 | 20 6c 69 73 70 20 73 65 |INTERP's| lisp se|
|00000340| 72 76 65 72 20 76 69 61 | 20 74 68 65 0a 77 69 6e |rver via| the.win|
|00000350| 74 65 72 70 20 63 6c 69 | 65 6e 74 20 70 72 6f 67 |terp cli|ent prog|
|00000360| 72 61 6d 20 27 77 6c 27 | 20 28 77 68 69 63 68 20 |ram 'wl'| (which |
|00000370| 6d 75 73 74 20 62 65 20 | 6f 6e 20 79 6f 75 72 20 |must be |on your |
|00000380| 73 65 61 72 63 68 20 70 | 61 74 68 29 2e 22 20 28 |search p|ath)." (|
|00000390| 69 6e 74 65 72 61 63 74 | 69 76 65 29 20 28 62 79 |interact|ive) (by|
|000003a0| 74 65 2d 63 6f 64 65 20 | 22 c2 88 c5 c6 21 3f 85 |te-code |"....!?.|
|000003b0| 0d 00 c7 c6 08 5c 22 88 | c8 c9 ca c5 c6 21 21 5c |.....\".|.....!!\|
|000003c0| 22 19 8a cb cc 20 88 60 | cd 20 88 60 09 c2 ce 25 |".... .`|. .`...%|
|000003d0| 29 88 cf c6 c8 d0 0b 0c | 09 24 5c 22 29 87 22 20 |).......|.$\")." |
|000003e0| 5b 77 69 6e 74 65 72 70 | 2d 63 6c 69 65 6e 74 2d |[winterp|-client-|
|000003f0| 73 68 65 6c 6c 20 6c 6f | 61 64 66 69 6c 65 20 6e |shell lo|adfile n|
|00000400| 69 6c 20 77 69 6e 74 65 | 72 70 2d 63 6c 69 65 6e |il winte|rp-clien|
|00000410| 74 2d 70 72 6f 67 72 61 | 6d 20 77 69 6e 74 65 72 |t-progra|m winter|
|00000420| 70 2d 63 6c 69 65 6e 74 | 2d 70 72 6f 67 72 61 6d |p-client|-program|
|00000430| 2d 61 72 67 73 20 67 65 | 74 2d 70 72 6f 63 65 73 |-args ge|t-proces|
|00000440| 73 20 22 77 69 6e 74 65 | 72 70 2d 63 6c 69 65 6e |s "winte|rp-clien|
|00000450| 74 2d 73 68 65 6c 6c 22 | 20 6d 61 6b 65 2d 73 68 |t-shell"| make-sh|
|00000460| 65 6c 6c 20 66 6f 72 6d | 61 74 20 22 2f 74 6d 70 |ell form|at "/tmp|
|00000470| 2f 77 6c 25 64 2e 6c 73 | 70 22 20 70 72 6f 63 65 |/wl%d.ls|p" proce|
|00000480| 73 73 2d 69 64 20 77 72 | 69 74 65 2d 72 65 67 69 |ss-id wr|ite-regi|
|00000490| 6f 6e 20 62 65 67 69 6e | 6e 69 6e 67 2d 6f 66 2d |on begin|ning-of-|
|000004a0| 64 65 66 75 6e 20 65 6e | 64 2d 6f 66 2d 64 65 66 |defun en|d-of-def|
|000004b0| 75 6e 20 6e 6f 6d 65 73 | 73 61 67 65 20 70 72 6f |un nomes|sage pro|
|000004c0| 63 65 73 73 2d 73 65 6e | 64 2d 73 74 72 69 6e 67 |cess-sen|d-string|
|000004d0| 20 22 25 73 20 25 73 20 | 27 28 6c 6f 61 64 20 5c | "%s %s |'(load \|
|000004e0| 22 25 73 5c 22 20 3a 76 | 65 72 62 6f 73 65 20 6e |"%s\" :v|erbose n|
|000004f0| 69 6c 20 3a 70 72 69 6e | 74 20 74 29 27 0a 22 5d |il :prin|t t)'."]|
|00000500| 20 31 35 29 29 0a 0a 28 | 64 65 66 75 6e 20 77 69 | 15))..(|defun wi|
|00000510| 6e 74 65 72 70 2d 73 65 | 6e 64 2d 65 78 69 74 20 |nterp-se|nd-exit |
|00000520| 6e 69 6c 20 22 5c 0a 43 | 61 6c 6c 69 6e 67 20 74 |nil "\.C|alling t|
|00000530| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |his func|tion wil|
|00000540| 6c 20 73 65 6e 64 20 57 | 49 4e 54 45 52 50 20 61 |l send W|INTERP a|
|00000550| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 65 78 69 74 | command| to exit|
|00000560| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0a 62 72 65 | the cur|rent.bre|
|00000570| 61 6b 6c 65 76 65 6c 2e | 20 49 66 20 6e 6f 74 20 |aklevel.| If not |
|00000580| 61 74 20 61 20 62 72 65 | 61 6b 6c 65 76 65 6c 2c |at a bre|aklevel,|
|00000590| 20 74 68 65 6e 20 57 49 | 4e 54 45 52 50 20 77 69 | then WI|NTERP wi|
|000005a0| 6c 6c 20 65 78 69 74 2e | 22 20 28 69 6e 74 65 72 |ll exit.|" (inter|
|000005b0| 61 63 74 69 76 65 29 20 | 28 62 79 74 65 2d 63 6f |active) |(byte-co|
|000005c0| 64 65 20 22 c3 88 c4 c5 | 21 3f 85 0d 00 c6 c5 08 |de "....|!?......|
|000005d0| 5c 22 88 c7 c5 c8 c9 09 | 0a 23 5c 22 87 22 20 5b |\"......|.#\"." [|
|000005e0| 77 69 6e 74 65 72 70 2d | 63 6c 69 65 6e 74 2d 73 |winterp-|client-s|
|000005f0| 68 65 6c 6c 20 77 69 6e | 74 65 72 70 2d 63 6c 69 |hell win|terp-cli|
|00000600| 65 6e 74 2d 70 72 6f 67 | 72 61 6d 20 77 69 6e 74 |ent-prog|ram wint|
|00000610| 65 72 70 2d 63 6c 69 65 | 6e 74 2d 70 72 6f 67 72 |erp-clie|nt-progr|
|00000620| 61 6d 2d 61 72 67 73 20 | 6e 69 6c 20 67 65 74 2d |am-args |nil get-|
|00000630| 70 72 6f 63 65 73 73 20 | 22 77 69 6e 74 65 72 70 |process |"winterp|
|00000640| 2d 63 6c 69 65 6e 74 2d | 73 68 65 6c 6c 22 20 6d |-client-|shell" m|
|00000650| 61 6b 65 2d 73 68 65 6c | 6c 20 70 72 6f 63 65 73 |ake-shel|l proces|
|00000660| 73 2d 73 65 6e 64 2d 73 | 74 72 69 6e 67 20 66 6f |s-send-s|tring fo|
|00000670| 72 6d 61 74 20 22 25 73 | 20 25 73 0a 22 5d 20 38 |rmat "%s| %s."] 8|
|00000680| 29 29 0a 0a 28 64 65 66 | 75 6e 20 77 69 6e 74 65 |))..(def|un winte|
|00000690| 72 70 2d 73 65 6e 64 2d | 62 75 66 66 65 72 20 6e |rp-send-|buffer n|
|000006a0| 69 6c 20 22 5c 0a 41 20 | 76 65 72 73 69 6f 6e 20 |il "\.A |version |
|000006b0| 6f 66 20 77 69 6e 74 65 | 72 70 2d 73 65 6e 64 2d |of winte|rp-send-|
|000006c0| 64 65 66 75 6e 20 74 68 | 61 74 20 73 65 6e 64 73 |defun th|at sends|
|000006d0| 20 74 68 65 20 65 6e 74 | 69 72 65 20 62 75 66 66 | the ent|ire buff|
|000006e0| 65 72 20 6f 66 66 20 74 | 6f 20 57 49 4e 54 45 52 |er off t|o WINTER|
|000006f0| 50 0a 66 6f 72 20 65 76 | 61 6c 75 61 74 69 6f 6e |P.for ev|aluation|
|00000700| 2e 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 74 |. This r|outine t|
|00000710| 61 6c 6b 73 20 74 6f 20 | 57 49 4e 54 45 52 50 27 |alks to |WINTERP'|
|00000720| 73 20 6c 69 73 70 20 73 | 65 72 76 65 72 20 76 69 |s lisp s|erver vi|
|00000730| 61 20 74 68 65 20 77 69 | 6e 74 65 72 70 20 63 6c |a the wi|nterp cl|
|00000740| 69 65 6e 74 0a 70 72 6f | 67 72 61 6d 20 27 77 6c |ient.pro|gram 'wl|
|00000750| 27 20 28 77 68 69 63 68 | 20 6d 75 73 74 20 62 65 |' (which| must be|
|00000760| 20 6f 6e 20 79 6f 75 72 | 20 73 65 61 72 63 68 20 | on your| search |
|00000770| 70 61 74 68 29 2e 22 20 | 28 69 6e 74 65 72 61 63 |path)." |(interac|
|00000780| 74 69 76 65 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |tive) (b|yte-code|
|00000790| 20 22 c2 88 c5 c6 21 3f | 85 0d 00 c7 c6 08 5c 22 | "....!?|......\"|
|000007a0| 88 c8 c9 ca c5 c6 21 21 | 5c 22 19 8a cb 65 64 09 |......!!|\"...ed.|
|000007b0| c2 cc 25 29 88 cd c6 c8 | ce 0b 0c 09 24 5c 22 29 |..%)....|....$\")|
|000007c0| 87 22 20 5b 77 69 6e 74 | 65 72 70 2d 63 6c 69 65 |." [wint|erp-clie|
|000007d0| 6e 74 2d 73 68 65 6c 6c | 20 6c 6f 61 64 66 69 6c |nt-shell| loadfil|
|000007e0| 65 20 6e 69 6c 20 77 69 | 6e 74 65 72 70 2d 63 6c |e nil wi|nterp-cl|
|000007f0| 69 65 6e 74 2d 70 72 6f | 67 72 61 6d 20 77 69 6e |ient-pro|gram win|
|00000800| 74 65 72 70 2d 63 6c 69 | 65 6e 74 2d 70 72 6f 67 |terp-cli|ent-prog|
|00000810| 72 61 6d 2d 61 72 67 73 | 20 67 65 74 2d 70 72 6f |ram-args| get-pro|
|00000820| 63 65 73 73 20 22 77 69 | 6e 74 65 72 70 2d 63 6c |cess "wi|nterp-cl|
|00000830| 69 65 6e 74 2d 73 68 65 | 6c 6c 22 20 6d 61 6b 65 |ient-she|ll" make|
|00000840| 2d 73 68 65 6c 6c 20 66 | 6f 72 6d 61 74 20 22 2f |-shell f|ormat "/|
|00000850| 74 6d 70 2f 77 6c 25 64 | 2e 6c 73 70 22 20 70 72 |tmp/wl%d|.lsp" pr|
|00000860| 6f 63 65 73 73 2d 69 64 | 20 77 72 69 74 65 2d 72 |ocess-id| write-r|
|00000870| 65 67 69 6f 6e 20 6e 6f | 6d 65 73 73 61 67 65 20 |egion no|message |
|00000880| 70 72 6f 63 65 73 73 2d | 73 65 6e 64 2d 73 74 72 |process-|send-str|
|00000890| 69 6e 67 20 22 25 73 20 | 25 73 20 27 28 6c 6f 61 |ing "%s |%s '(loa|
|000008a0| 64 20 5c 22 25 73 5c 22 | 20 3a 76 65 72 62 6f 73 |d \"%s\"| :verbos|
|000008b0| 65 20 6e 69 6c 20 3a 70 | 72 69 6e 74 20 74 29 27 |e nil :p|rint t)'|
|000008c0| 0a 22 5d 20 31 33 29 29 | 0a 0a 28 64 65 66 69 6e |."] 13))|..(defin|
|000008d0| 65 2d 6b 65 79 20 6c 69 | 73 70 2d 6d 6f 64 65 2d |e-key li|sp-mode-|
|000008e0| 6d 61 70 20 22 03 04 22 | 20 28 71 75 6f 74 65 20 |map ".."| (quote |
|000008f0| 77 69 6e 74 65 72 70 2d | 73 65 6e 64 2d 65 78 69 |winterp-|send-exi|
|00000900| 74 29 29 0a 0a 28 64 65 | 66 69 6e 65 2d 6b 65 79 |t))..(de|fine-key|
|00000910| 20 6c 69 73 70 2d 6d 6f | 64 65 2d 6d 61 70 20 22 | lisp-mo|de-map "|
|00000920| 1b 18 22 20 28 71 75 6f | 74 65 20 77 69 6e 74 65 |.." (quo|te winte|
|00000930| 72 70 2d 73 65 6e 64 2d | 64 65 66 75 6e 29 29 0a |rp-send-|defun)).|
+--------+-------------------------+-------------------------+--------+--------+